package com.financing.wap.dao.impl;

import java.util.List;
import com.financing.wap.dao.impl.BaseDaoImpl;
import com.financing.wap.dao.IFpFundBuynoticeDao;
import com.financing.wap.dto.FpFundBuynoticeDTO;
import com.financing.wap.util.SqlName;
import java.sql.SQLException;
import java.util.Collections;

import org.springframework.stereotype.Repository;

/**
 * @Description:实现类
 * @author caojiayao
 * @version 1.0
 * @created 
 */
@Repository("fpFundBuynotice")
public class FpFundBuynoticeDaoImpl extends BaseDaoImpl implements IFpFundBuynoticeDao {
	
	
	
	@Override
	public FpFundBuynoticeDTO getFpFundBuynotice(FpFundBuynoticeDTO dto) {
		return (FpFundBuynoticeDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.fpFundBuynotice,dto);
	}
	
	
	@Override
	public Integer insertFpFundBuynotice(FpFundBuynoticeDTO dto) {
		return (Integer) this.getSqlMapClientTemplate().insert(SqlName.insertFpFundBuynotice,dto);
	}

	
	@Override
	public Integer updateFpFundBuynotice(FpFundBuynoticeDTO dto) {
		return (Integer) this.getSqlMapClientTemplate().update(SqlName.updateFpFundBuynotice, dto);
	}
	
	@Override
	public Integer delFpFundBuynotice(Integer id) {
		return (Integer) this.getSqlMapClientTemplate().delete(SqlName.delFpFundBuynotice, id);
	}
	
	@Override
	public List<FpFundBuynoticeDTO> listFpFundBuynotice(FpFundBuynoticeDTO dto) {
		return (List<FpFundBuynoticeDTO>)this.getSqlMapClientTemplate().queryForList(SqlName.listFpFundBuynotice, dto);
	}
	
	
	public Integer countFpFundBuynotice(FpFundBuynoticeDTO dto){
		return (Integer)this.getSqlMapClientTemplate().queryForObject(SqlName.countFpFundBuynotice, dto);
	}


	@Override
	public Class<FpFundBuynoticeDTO> getEntityClass() {
		return FpFundBuynoticeDTO.class;
	}


}